package com.jkt.rms.dataservice.impl;

import com.jkt.rms.business.Resource;
import com.jkt.rms.commons.utils.RMSException;
import com.jkt.rms.dataservice.AbstractDataService;
import com.jkt.rms.dataservice.ResourceDataService;

public class ResourceDataServiceImpl extends AbstractDataService<Resource> implements ResourceDataService {

	@Override
	protected Class<Resource> getReferenceClass() {
		return Resource.class;
	}

	@Override
	public Resource saveResource(Resource resource) throws RMSException {
		return super.save(resource);
	}

	@Override
	public Resource findProjectById(int resourceId) {
		return (Resource)super.find(resourceId);
	}

	@Override
	public void updateResource(Resource resource) throws RMSException {
		super.saveOrUpdate(resource);
	}

}
